package cn.ray.springframework.beans.factory.config;

import cn.ray.springframework.beans.BeansException;

public interface BeanPostProcessor {
    /**
     * bean对象执行初始化方法前
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInitialization(Object bean,String beanName) throws BeansException;


    /**
     * bean对象执行初始化方法后
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessAfterInitialization(Object bean,String beanName) throws BeansException;
}
